.class public Lcom/netease/newsreader/view/PageClickView;
.super Landroid/widget/ImageView;
.source "PageClickView.java"

# interfaces
.implements Landroid/view/GestureDetector$OnGestureListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/netease/newsreader/view/PageClickView$PerformClick;
    }
.end annotation


# instance fields
.field private mDetector:Landroid/view/GestureDetector;

.field private mPerformClick:Lcom/netease/newsreader/view/PageClickView$PerformClick;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0
    .parameter "context"

    .prologue
    .line 27
    invoke-direct {p0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 28
    invoke-direct {p0, p1}, Lcom/netease/newsreader/view/PageClickView;->init(Landroid/content/Context;)V

    .line 29
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0
    .parameter "context"
    .parameter "attrs"

    .prologue
    .line 22
    invoke-direct {p0, p1, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 23
    invoke-direct {p0, p1}, Lcom/netease/newsreader/view/PageClickView;->init(Landroid/content/Context;)V

    .line 24
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0
    .parameter "context"
    .parameter "attrs"
    .parameter "defStyle"

    .prologue
    .line 17
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 18
    invoke-direct {p0, p1}, Lcom/netease/newsreader/view/PageClickView;->init(Landroid/content/Context;)V

    .line 19
    return-void
.end method

.method private init(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 32
    new-instance v0, Landroid/view/GestureDetector;

    invoke-direct {v0, p0}, Landroid/view/GestureDetector;-><init>(Landroid/view/GestureDetector$OnGestureListener;)V

    iput-object v0, p0, Lcom/netease/newsreader/view/PageClickView;->mDetector:Landroid/view/GestureDetector;

    .line 33
    return-void
.end method

.method private removePerformClick()V
    .locals 1

    .prologue
    .line 89
    iget-object v0, p0, Lcom/netease/newsreader/view/PageClickView;->mPerformClick:Lcom/netease/newsreader/view/PageClickView$PerformClick;

    if-eqz v0, :cond_0

    .line 90
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/netease/newsreader/view/PageClickView;->mPerformClick:Lcom/netease/newsreader/view/PageClickView$PerformClick;

    .line 92
    :cond_0
    return-void
.end method


# virtual methods
.method public onDown(Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "e"

    .prologue
    .line 60
    const/4 v0, 0x1

    return v0
.end method

.method public onFling(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 1
    .parameter "e1"
    .parameter "e2"
    .parameter "velocityX"
    .parameter "velocityY"

    .prologue
    .line 65
    invoke-direct {p0}, Lcom/netease/newsreader/view/PageClickView;->removePerformClick()V

    .line 66
    const/4 v0, 0x1

    return v0
.end method

.method public onLongPress(Landroid/view/MotionEvent;)V
    .locals 0
    .parameter "e"

    .prologue
    .line 71
    return-void
.end method

.method public onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 1
    .parameter "e1"
    .parameter "e2"
    .parameter "distanceX"
    .parameter "distanceY"

    .prologue
    .line 75
    invoke-direct {p0}, Lcom/netease/newsreader/view/PageClickView;->removePerformClick()V

    .line 76
    const/4 v0, 0x1

    return v0
.end method

.method public onShowPress(Landroid/view/MotionEvent;)V
    .locals 0
    .parameter "e"

    .prologue
    .line 81
    return-void
.end method

.method public onSingleTapUp(Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "e"

    .prologue
    .line 85
    const/4 v0, 0x1

    return v0
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 3
    .parameter "event"

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 37
    iget-object v0, p0, Lcom/netease/newsreader/view/PageClickView;->mDetector:Landroid/view/GestureDetector;

    invoke-virtual {v0, p1}, Landroid/view/GestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z

    .line 38
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 55
    :goto_0
    :pswitch_0
    return v1

    .line 40
    :pswitch_1
    new-instance v0, Lcom/netease/newsreader/view/PageClickView$PerformClick;

    invoke-direct {v0, p0, v2}, Lcom/netease/newsreader/view/PageClickView$PerformClick;-><init>(Lcom/netease/newsreader/view/PageClickView;Lcom/netease/newsreader/view/PageClickView$PerformClick;)V

    iput-object v0, p0, Lcom/netease/newsreader/view/PageClickView;->mPerformClick:Lcom/netease/newsreader/view/PageClickView$PerformClick;

    .line 41
    invoke-virtual {p0, v1}, Lcom/netease/newsreader/view/PageClickView;->setPressed(Z)V

    goto :goto_0

    .line 45
    :pswitch_2
    iget-object v0, p0, Lcom/netease/newsreader/view/PageClickView;->mPerformClick:Lcom/netease/newsreader/view/PageClickView$PerformClick;

    if-eqz v0, :cond_0

    .line 46
    iget-object v0, p0, Lcom/netease/newsreader/view/PageClickView;->mPerformClick:Lcom/netease/newsreader/view/PageClickView$PerformClick;

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/view/PageClickView;->post(Ljava/lang/Runnable;)Z

    .line 47
    iput-object v2, p0, Lcom/netease/newsreader/view/PageClickView;->mPerformClick:Lcom/netease/newsreader/view/PageClickView$PerformClick;

    .line 49
    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/view/PageClickView;->setPressed(Z)V

    goto :goto_0

    .line 38
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_2
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
